package com.hzdesk.media.koreabatchmatvector.logic.model;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

import com.hzdesk.media.koreabatchmatvector.bean.AdvertisingInfo;
import com.hzdesk.media.koreabatchmatvector.bean.DeviceAttributeBean;
import com.hzdesk.media.koreabatchmatvector.logic.contract.SplashContract;

import java.util.List;

/**
 * Created by Administrator on 2018/6/27.
 * 杭州席媒科技有限公司  Developers  刘传华  10
 * 佛祖镇楼 bug辟易
 */

public class SplashModel implements SplashContract.ISplashModel {
    @Override
    public void saveDevicesDate(DeviceAttributeBean bean, Context context) {
        SharedPreferences mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
        SharedPreferences.Editor editor =   mSharedPreferences.edit();
        editor.putString("software_version",bean.getLastVsersion());
      editor.putString("software_version_new_url",bean.getVersionUrl());
        editor.commit();
       // editor.pu("server_store_space",bean.getServerStoreSpace());

    }

    @Override
    public void saveAdvertisingInfo(List<AdvertisingInfo> mlistBean) {

    }
}
